<template>
  <div>
    <h3>首页页面 --{{ count }}</h3>
    <button @click="addCount">++count++</button>
  </div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import useCounterStore from '@/store/counter'
const counterStore = useCounterStore()

const count = computed(() => counterStore.count)

const addCount = () => {
  counterStore.incr(10)
}
</script>
<style lang="scss" scoped></style>
